@include('admin.common.header')

<!--tab nav start-->
<section class="panel">
    <header class="panel-heading tab-bg-dark-navy-blue ">
        <ul class="nav nav-tabs">
            <li @if ($_active['_action'] == 'list')  class="active" @endif>
                <a href="/admin/stores">店铺列表</a>
            </li>
            <li @if ($_active['_action'] == 'add')  class="active" @endif>
                <a href="/admin/stores/add">添加店铺</a>
            </li>  
        </ul>
    </header>
    <div class="panel-body">
        <div class="tab-content">
            <div class="row cmxform form-horizontal tasi-form">
                <div class="col-lg-6">
                    <section class="panel">
                        <div class="panel-body">
                            <input class=" form-control"  id="lng" name="lng" type="hidden" />
                            <input class=" form-control"  id="lat" name="lat" type="hidden" />
                            <input class=" form-control"  id="adcode" name="adcode" type="hidden" />
                            <input class=" form-control"  id="pcd" name="pcd" type="hidden" />
                            <div class="form-group ">
                                <label for="lastname" class="control-label col-lg-2">名称</label>
                                <div class="col-lg-10">
                                    <input class=" form-control"  id="name" name="name" placeholder="店铺名称" type="text" />
                                </div>
                            </div>
                            <div class="form-group ">
                                <label for="lastname" class="control-label col-lg-2">地址</label>
                                <div class="col-lg-10">
                                    <input class="form-control"  id="address" name="address" placeholder="店铺地址" type="text" />
                                </div>
                            </div>
                            <div class="form-group ">
                                <label for="lastname" class="control-label col-lg-2">定位</label>
                                <div class="col-lg-10" style="height: 300px" id="amap-container">

                                </div>
                            </div>
                            <div class="form-group ">
                                <label for="username" class="control-label col-lg-2">联系电话</label>
                                <div class="col-lg-10">
                                    <input class="form-control "  id="mobile" name="mobile" placeholder="" type="text" />
                                </div>
                            </div>
                            <div class="form-group ">
                                <label for="password" class="control-label col-lg-2">联系人</label>
                                <div class="col-lg-10">
                                    <input class="form-control "  id="contact" name="contact" placeholder="" type="text" />
                                </div>
                            </div>
                            <div class="form-group ">
                                <label for="password" class="control-label col-lg-2">登录密码</label>
                                <div class="col-lg-10">
                                    <input class="form-control "  id="password" name="password" placeholder="" type="password" />
                                </div>
                            </div>
                            <div class="form-group ">
                                <label for="confirm_password" class="control-label col-lg-2">身份证</label>
                                <div class="col-lg-10">
                                    <input class="form-control "  id="i_d_card" name="i_d_card" type="text" />
                                </div>
                            </div>
                        </div>
                    </section>
                </div>
                <div class="col-lg-6">
                    <section class="panel">
                        <div class="panel-body">
                            <div class="form">
                                <div class="form-group ">
                                    <div class="col-lg-12">
                                        <!-- D&D Zone-->
                                        <div id="drag-and-drop-zone" class="uploader">
                                            <div>上传营业执照图片</div>
                                            <div>将图片拖拽到此处</div>
                                            <div class="or">-或者-</div>
                                            <div class="browser">
                                                <label>
                                                    <span>点击上传图片</span>
                                                    <input type="file" name="imgs[]" multiple="multiple" title='Click to add Files'>
                                                </label>
                                            </div>
                                        </div>
                                        <div class="panel panel-default">
                                            <div class="panel-heading">
                                                <h3 class="panel-title">Uploads</h3>
                                            </div>
                                            <div class="panel-body demo-panel-files" id='demo-files'>
                                                <span class="demo-note">No Files have been selected/droped yet...</span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </section>
                </div>
            </div>
            <div class="col-lg-12 text-center">
                <button class="btn btn-danger form-submit" type="button">添加</button>
            </div>
        </div>
    </div>
</section>
<!--tab nav start-->



<script>
    require(['app/stores' , 'common/common'] , function (app , common) {
        app.upImg();
        app.ajaxAddStores();
        app.sortImg();
        app.selectAddress();
        common.radioToggle();
    });
</script>

@include('admin.common.footer')